std::asctime
From Cppreference
| Defined in header <ctime>
| ||
| char *asctime( const struct tm *time_ptr );
| ||
Converts given calendar time tm to a textual representation. The resulting string has the following format:
Www Mmm dd hh:mm:ss yyyy
- Www - the day of the week (one of Mon, Tue, Wed, Thu, Fri, Sat, Sun).
- Mmm - the month (one of Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec).
- dd - the day of the month
- hh - hours
- mm - minutes
- ss - seconds
- yyyy - years
The function does not support localization.
Contents |
[edit] Parameters
| time_ptr | - | pointer to a tm object specifying the time to print |
[edit] Return value
pointer to a static character string. The string is shared among ctime() and asctime() and is overwritten on each invocation.
[edit] Example
| This section is incomplete |
[edit] See also
| converts a tm object to a textual representation (function) | |
| converts a tm object to custom textual representation (function) | |